<?php
class IndexController extends default_controllers_Controller
{
	public function initView()
	{
		$this->view = parent::initView();

		$this->_helper->getHelper('viewRenderer')->setNoRender();

		return $this->view;
	}

	function indexAction()
	{
		$this->view->services   =         core_Services   ::getInstance()->getCollection();
		$this->view->articles   =   array(core_Articles   ::getInstance()->getLastEntry());
		$this->view->projects   =         core_Projects   ::getInstance()->getCollection(array('criterion' => 'byRandom'));
		$this->view->news       =         core_News       ::getInstance()->getCollection(array('paging' => array('page' => 1, 'perPage' => 3)));
		$this->view->about      =         core_Divisions  ::getInstance()->getEntryByAlias('index');
	}
}